package com.cskaoyan.market.service.wx;

import com.cskaoyan.market.db.domain.MarketCart;

import java.util.List;
import java.util.Map;

public interface WxCartService {
    Map<String, Object> index(Integer userId);

    Integer addCart(Integer productId, Integer goodsId, Short number);

    Long getGoodsCount(Integer userId);

    void checked(Integer[] productIds, Boolean isChecked, Integer userId);

    MarketCart addfast(Integer productId, Integer goodsId, Short number, Integer userId);

    Map<String, Object> checkoutCart(Integer cartId, Integer addressId, Integer couponId, Integer userCouponId, Integer grouponRulesId, Integer userId);

    int updateCart(Integer productId, Integer goodsId, Integer cartId, Short number);

    void deleteCart(List<Integer> productIdsList);
}
